<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>视频背景模板</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            overflow-x: hidden;
        }

        /* 视频背景样式 */
        .video-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        .video-background video {
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            object-fit: cover;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5); /* 可选的遮罩层 */
        }

        .hero-content {
            position: relative;
            z-index: 1;
            text-align: center;
            color: white;
            padding: 150px 20px;
        }

        .hero-content h1 {
            font-size: 3rem;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .hero-content p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto 30px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        .btn {
            display: inline-block;
            padding: 12px 30px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            text-decoration: none;
            border-radius: 30px;
            font-weight: bold;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-3px);
        }

        /* 内容区域 */
        .content-section {
            background: white;
            padding: 80px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .content-section h2 {
            text-align: center;
            margin-bottom: 40px;
            color: #333;
        }

        .cards {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
        }

        .card {
            flex: 1;
            min-width: 300px;
            max-width: 350px;
            padding: 30px;
            background: #f8f9fa;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .card:hover {
            transform: translateY(-10px);
        }

        .card h3 {
            color: #333;
            margin-bottom: 15px;
        }

        .card p {
            color: #666;
            line-height: 1.6;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .hero-content h1 {
                font-size: 2rem;
            }

            .hero-content p {
                font-size: 1rem;
            }

            .card {
                min-width: 100%;
            }
        }
    </style>
</head>
<body>
    <!-- 视频背景 -->
    <section class="hero">
        <div class="video-background">
            <video autoplay muted loop>
                <source src="img/11e07792-1f74-4cd1-843a-14c14c21b2cf.mp4 (1) - Compressed with FlexClip (2) - Compressed with FlexClip - Compressed with FlexClip.mp4" type="video/mp4">
                您的浏览器不支持视频播放。
            </video>
        </div>
        <div class="hero-overlay"></div>
        <div class="hero-content">
            <h1>视频背景模板</h1>
            <p>这是一个使用HTML5视频作为背景的网页模板。视频背景可以为网站增添生动感和现代感。</p>
            <a href="#content" class="btn">了解更多</a>
        </div>
    </section>

    <!-- 内容区域 -->
    <section id="content" class="content-section">
        <h2>视频背景的优势</h2>
        <div class="cards">
            <div class="card">
                <h3>视觉吸引力</h3>
                <p>视频背景能够立即吸引访问者的注意力，比静态图片更具视觉冲击力，让网站显得更加生动有趣。</p>
            </div>
            <div class="card">
                <h3>传达信息</h3>
                <p>一段精心制作的视频可以在几秒钟内传达品牌理念或产品特性，比文字描述更直观有效。</p>
            </div>
            <div class="card">
                <h3>提升用户体验</h3>
                <p>合适的视频背景可以增强用户的情感连接，提高网站的停留时间和互动率。</p>
            </div>
        </div>
    </section>
</body>
</html>